package com.happy016.entity;

import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;

@Data
@Document(
        indexName = "elasticsearch",type = "article",
        refreshInterval = "-1"
)
public class Article implements Serializable{

    private Integer id;
    private String title;
    private String fact;
    private String content;
}
